package com.jeomo.masterdata.starter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeomo.masterdata.starter.entity.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 崔贺
 */
@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

    @Select("SELECT `code` FROM master_brand WHERE org_code = #{orgCode} order by `code` DESC LIMIT 1 ")
    String queryRecentlyCode(String orgCode);
}
